<style type="text/css">
    .layui-form-select dl{z-index:9999;}
</style>
<form class="layui-form" action="{:url()}" method="post" id="editForm">

    <div class="layui-form-item">
        <label class="layui-form-label">结算方式</label>
        <div class="layui-input-inline ">
            <select name="settlement" class="field-settlement" type="select" lay-verify="required">
                <option value="">请选择</option>
                <option value="1" {if $formData['settlement'] == 1} selected {/if}>现金消费</option>
                <!-- <option value="2" {if $formData['settlement'] == 2} selected {/if}>储值卡</option> -->
                <option value="3" {if $formData['settlement'] == 3} selected {/if}>赠送</option>
                <option value="4" {if $formData['settlement'] == 4} selected {/if}>疗程卡</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline ">
            <input type="text" class="layui-input field-bak" name="bak" >
        </div>
    </div>
    <span style="display:none" id="prices"></span>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" class="field-id" name="id">
            <button type="submit" class="layui-btn layui-btn-normal" hisi-data="{pop: true, refresh: true}" lay-submit="" lay-filter="formSubmit">提交</button>
            <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
        </div>
    </div>
</form>
{include file="system@block/layui" /}
<script>
layui.use(['func','jquery','form'], function() {
    var $ = layui.jquery
        ,form = layui.form;
    // 编辑模式下表单自动赋值
    layui.func.assign({:json_encode($formData)});

});
</script>
